package cn.school.pay.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_pay_order_info")
public class PayOrderInfoVO extends BaseVO {

    @ApiModelProperty(value = "支付系统订单号")
    private String orderNo;

    @ApiModelProperty(value = "支付平台订单号")
    private String payTradeNo;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "支付平台 1-支付宝  2-微信")
    private String payPlatform;

    @ApiModelProperty(value = "支付完成时间")
    private Date payTime;

    @ApiModelProperty(value = "支付状态1-支付中 2-放弃支付 3-支付成功")
    private String orderStatus;

    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private String userName;
    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
